import http from '@/api'
import { UniCloudParams } from '../interface'

/**
 * 权限管理模块
 */
export const getPermissionListApi = (params?: UniCloudParams<any>) => {
  return http.post(`/mo-admin/getPermission`, params)
}

export const addPermissionApi = (params: UniCloudParams<any>) => {
  return http.post(`/mo-admin/addPermission`, params)
}

export const updatePermissionApi = (params: UniCloudParams<any>) => {
  return http.post(`/mo-admin/updatePermission`, params)
}

export const deletePermissionApi = (params: UniCloudParams<any>) => {
  return http.post(`/mo-admin/deletePermission`, params)
}
